package rule;

/**
 * <p>
 * //TODO
 * </P>
 *
 * @author dingwen
 * @date 2021.09.09 16:47
 */
public class PrintRule extends AbstractBaseRule<Object,String>{
    @Override
    void executeVoid(RuleDto<String> ruleDto) {
        String value = ruleDto.getValue();
        if (value.equals("x")){
           System.out.println("X");
       } else if (value.equals("y")){
            System.out.println("y");
        } else {
            System.out.println("not find");
        }
    }
}
